package com.yc;

import com.yc.bean.*;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        Leader devManager = new DevManager("开发经理");
        Leader departMentManager = new DepartMentManager("部门经理");
        Leader generalManager = new GeneralManage("总经理");
        Leader boss = new Boss("CEO");


        devManager.setSuperior(departMentManager);
        departMentManager.setSuperior(generalManager);
        generalManager.setSuperior(boss);

        devManager.handleRequest(4);

    }
}
